package com.wh.hotel.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@ConfigurationProperties(prefix = "hotel.async.pool")
@Configuration
public class HotelPoolConfig {
    private int corePoolSize = 3;
    private int maxPoolSize = 10;
    private int keepAliveSeconds = 120;
    private int queueCapacity = 1000;
    private int awaitTerminationSeconds = 60;
    private String threadNamePrefix = "hotel-async-default-";
}
